<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户授权页面</title>
</head>
<body>
<form action="/OauthServlet-ch03" method="post">
    <input type="hidden" name="reqId" th:value="${reqId}"/>
    <input type="hidden" name="response_type" th:value="${response_type}"/>
    <input type="hidden" name="redirect_uri" th:value="${redirect_uri}"/>
    <input type="hidden" name="app_id" th:value="${app_id}"/>
    <!--模拟 approve 动作-->
    <input type="hidden" name="reqType" th:value="approve"/>
    Are you sure you want the authorization code？
    <br>
    appId: <p th:value="${app_id}"></p>
    <br>
    <label>
        <input type="checkbox" value="today" name="rscope" checked/>
    </label>today<br>
    <label>
        <input type="checkbox" value="history" name="rscope"/>
    </label>history<br>
    <br>
    <input type="submit" value="approve"/>
    <input type="submit" value="refuse"/>
    <br>
</form>
</body>
</html>